package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.yingxin.YingXinUserData;
import com.yanqu.road.entity.activity.yingxin.config.HotPotFloorConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.Map;

public class YingXinBussiness {

    public static Map<Integer, Map<Integer, HotPotFloorConfig>> getHotPotFloorConfigMap(int activityId) {
        return DaoHelper.getYingXinFloorConfigDaoImpl().getHotPotFloorConfigMap(activityId);
    }

    public static YingXinUserData getYingXinUserData(int activityId, long userId) {
        return DaoHelper.getYingXinDataDaoImpl().getYingXinUserData(activityId, userId);
    }

    public static boolean updateYingXinUserData(YingXinUserData data) {
        return DaoHelper.getYingXinDataDaoImpl().update(data);
    }

    public static boolean addYingXinUserData(YingXinUserData data) {
        return DaoHelper.getYingXinDataDaoImpl().add(data);
    }

}
